package com.lineage.server.clientpackets;

import com.lineage.echo.ClientExecutor;
import com.lineage.echo.encryptions.PacketPrint;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class C_Unkonwn extends ClientBasePacket {
  private static final Log _log = LogFactory.getLog(C_Unkonwn.class);
  
  public void start(byte[] decrypt, ClientExecutor client) {
    try {
      _log.info("未处理封包: " + (decrypt[0] & 0xFF) + " (" + getNow_YMDHMS() + " 核心管理者纪录用!)");
      _log.info(PacketPrint.get().printData(decrypt, decrypt.length));
    } catch (Exception exception) {
    
    } finally {
      over();
    } 
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
  
  private final String getNow_YMDHMS() {
    String nowDate = (new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")).format(new Date());
    return nowDate;
  }
}
